<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <meta name="applicable-device" content="mobile"/>
    <meta name="apple-mobile-web-app-capable" content="no"/>
    <!--<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">-->
    <meta name="format-detection" content="telephone=no"/>

    <link rel="stylesheet" href="css/all.css"/>
    <script src="lib/flexible.js"></script>
    <script src="lib/jquery-1.9.1.min.js"></script>
</head>
<body>
<!-- header -->
    <header class="header2">
        <a href="JavaScript:history.go(-1)" class="return"><img src="img/234d_03.png" /></a>
        <span class="word">关注</span>
    </header>
<!-- /header -->
<!-- bodyer -->
<div class="look-people">
    <div class="people l-f">
        <div class="top-photo l-f-g1"><img src="img/tmp/fff23_10.png" alt=""></div>
        <div class="look-name l-f-g3">
            <span class="name">郝立拴</span>
            <div class="world fn-toe">我是个摄影师，你加我好友sfssgsgsdgfsfsdfsdffsfsf行不</div>
        </div>
        <div class="cancel l-f-g1">
            <span class="can">取消</span>
        </div>
    </div>
    <div class="people l-f">
        <div class="top-photo l-f-g1"><img src="img/tmp/fff23_10.png" alt=""></div>
        <div class="look-name l-f-g3">
            <span class="name">郝立拴</span>
            <div class="world fn-toe">我是个摄影师，你加我好友sfssgsgsdgfsfsdfsdffsfsf行不</div>
        </div>
        <div class="cancel l-f-g1">
            <span class="can">取消</span>
        </div>
    </div>
    <div class="people l-f">
        <div class="top-photo l-f-g1"><img src="img/tmp/fff23_10.png" alt=""></div>
        <div class="look-name l-f-g3">
            <span class="name">郝立拴</span>
            <div class="world fn-toe">我是个摄影师，你加我好友sfssgsgsdgfsfsdfsdffsfsf行不</div>
        </div>
        <div class="cancel l-f-g1">
            <span class="can">取消</span>
        </div>
    </div>
    <div class="people l-f">
        <div class="top-photo l-f-g1"><img src="img/tmp/fff23_10.png" alt=""></div>
        <div class="look-name l-f-g3">
            <span class="name">郝立拴</span>
            <div class="world fn-toe">我是个摄影师，你加我好友sfssgsgsdgfsfsdfsdffsfsf行不</div>
        </div>
        <div class="cancel l-f-g1">
            <span class="can">取消</span>
        </div>
    </div>
    <div class="people l-f">
        <div class="top-photo l-f-g1"><img src="img/tmp/fff23_10.png" alt=""></div>
        <div class="look-name l-f-g3">
            <span class="name">郝立拴</span>
            <div class="world fn-toe">我是个摄影师，你加我好友sfssgsgsdgfsfsdfsdffsfsf行不</div>
        </div>
        <div class="cancel l-f-g1">
            <span class="can">取消</span>
        </div>
    </div>
</div>
<!-- /bodyer -->
<script>
    $(".people .can").on("click",function(){
        $.ajax({
            type:"post",
            url:todo,//todo
            dataType:"json",
            data:todo,//todo
            error: function (jqXHR, textStatus, errorThrown) {//进行错误信息的处理
                /*弹出jqXHR对象的信息*/
                console.log(jqXHR.responseText + "-" + jqXHR.status + "-" + jqXHR.readyState + "-" + jqXHR.statusText);
                /*弹出其他两个参数的信息*/
                console.log(textStatus);
                console.log(errorThrown);
            },
            success:function(data){
                if (data.status == 1){
                    $(this).parents(".people").remove();
                    //todo 删除关注
                }else {
                    alert("data.status="+data.status);
                }
            }
        });
    });
</script>
</body>
</html>
